/*
** my_square_root.c for my_square_root in /home/chassa_m/rendu/Piscine-C-lib/my
** 
** Made by chassa_m
** Login   <chassa_m@epitech.net>
** 
** Started on  Wed Oct  9 07:06:38 2013 chassa_m
** Last update Wed Oct  9 14:43:27 2013 chassa_m
*/

int	my_square_root(int nb)
{
  int	n;

  n = 0;
  while (n * n != nb)
    {
      n = n + 1;
    }
  if (n * n > nb)
    {
      return (0);
    }
  return (n);
}
